import React,{ Component } from 'react';
import item from '../css/indexCenter.css';//使用require导入css文件
import IndexItemLi from './indexItemLi.js';
export default class IndexItem extends React.Component{
	handleClick(){
		
	}
    render(){
		let itemchildren = this.props.items.children;
		let items = [];
		itemchildren.forEach(function (value) {
			items.push(<IndexItemLi items={value} />)
		});
		return (
			<li>
				<h1 className={item.typeA}><img className={item.iconImg} src="./img/open.png" />{this.props.items.name}</h1>
				<ul className={item.childUl}>{items}</ul>
			</li>
		);
    }
}
